package org.aeon.gamechatnest.mapper;

import org.aeon.gamechatnest.pojo.RoleUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 89342
 * @description 针对表【role_user(角色用户表)】的数据库操作Mapper
 * @createDate 2024-05-11 11:56:41
 * @Entity org.aeon.gamechatnest.pojo.RoleUser
 */
@Mapper
public interface RoleUserMapper {
    /**
     * 添加角色用户关联
     *
     * @param roleUser
     * @return
     */
    int add(RoleUser roleUser);

    /**
     * 删除角色用户关联
     *
     * @param roleIds
     */
    int deleteByRoleIds(@Param("roleIds") List<Long> roleIds);
}
